//
//  RCUserRegVC.m
//  RocketProject
//
//  Created by chen jiedan on 13-8-23.
//  Copyright (c) 2013年 Rocket. All rights reserved.
//

#import "RCUserRegVC.h"
#import "LVCategoryContent.h"
#import "LVCategoryCell.h"

@interface RCUserRegVC ()<LVCategoryCellDelegate>

@end

@implementation RCUserRegVC

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view.
    
    LVCategoryContent *tabView = [[LVCategoryContent alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth(self.view.bounds), 36)];
    tabView.contentHeight = 36;
    tabView.scrollEnabled = NO;
    tabView.xMargin = 20;
    NSArray *titles = @[@"全部",@"酒吧",@"咖啡",@"KTV",@"影院"];
    NSMutableArray *cats = [NSMutableArray array];
    for (NSString *title in titles) {
        CategoryCellInfo *info = [[[CategoryCellInfo alloc] init] autorelease];
        info.name = title;
        info.cId = title;
        [cats addObject:info];
    }
    tabView.categoryList = cats;
    [tabView selectAtIndex:0];
    tabView.categoryCellDelegate = self;
    
    [self.viewContainer addSubview:tabView];
    [tabView release];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


-(void) cellClicked:(NSString *)cellTitle parentContainer:(LVCategoryContent *)categoryContent
{
    
}


@end
